﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="FormulaireAdherent.aspx.cs" Inherits="FormulaireAdherent" Title="Page sans titre" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Main" Runat="Server">
    <div style="float:left" id="add_box">
    
    <table class="form" cellpadding="5" cellspacing="0" style="width:450px">
    
    <tr>
        <td class="table_title" colspan="3">
            <asp:Label ID="lbAjoutAdherent" runat="server" Text="Ajouter un adhérent"></asp:Label>
        </td>
    </tr>
    
    <tr>
        <td style="width:150px; text-align:right;"><asp:Label ID="lbNom" runat="server" Text="Nom"></asp:Label></td>
        <td><asp:TextBox ID="tbNom" runat="server"></asp:TextBox>
        </td>
        <td> <asp:RequiredFieldValidator ID="RequiredFieldValidator1" ControlToValidate="tbNom" runat="server" 
                ErrorMessage="Nom obligatoire"></asp:RequiredFieldValidator></td>
    </tr>
    
    <tr>
        <td style="text-align:right;"><asp:Label ID="lbPrenom" runat="server" Text="Prénom"></asp:Label></td>
        <td><asp:TextBox ID="tbPrenom" runat="server"></asp:TextBox>
        </td>
        <td><asp:RequiredFieldValidator ID="RequiredFieldValidator2" ControlToValidate="tbPrenom" runat="server" 
                ErrorMessage="Prénom obligatoire"></asp:RequiredFieldValidator></td>
        
    </tr>
     <tr>
        <td style="text-align:right"><asp:Label ID="lbNaissance" runat="server" Text="Date de naissance"></asp:Label></td>
        <td> <asp:TextBox ID="tbNaissance" runat="server"></asp:TextBox></td>
        <td>
            &nbsp;</td>
      
         
    </tr>
    <tr>
        <td style="text-align:right;"><asp:Label ID="lbAdresse" runat="server" Text="Adresse"></asp:Label></td>
        <td><asp:TextBox ID="tbAdresse" runat="server"></asp:TextBox></td>
    </tr>
    
     <tr>
        <td style="text-align:right;"><asp:Label ID="lbCp" runat="server" Text="Cp"></asp:Label></td>
        <td><asp:TextBox ID="tbCp" runat="server"></asp:TextBox></td>
       <td>
           <asp:RegularExpressionValidator ID="RegularExpressionValidator2" 
               ControlToValidate="tbCp" runat="server" ErrorMessage="Code postal invalide" 
               ValidationExpression="\d{5}"></asp:RegularExpressionValidator></td> 
    </tr>
    
    <tr>
        <td style="text-align:right;"><asp:Label ID="lbVille" runat="server" Text="Ville"></asp:Label></td>
        <td><asp:TextBox ID="tbVille" runat="server"></asp:TextBox></td>
    </tr>
    
    <tr>
        <td style="text-align:right;"><asp:Label ID="lbTel" runat="server" Text="Tel"></asp:Label></td>
        <td><asp:TextBox ID="tbTel" runat="server"></asp:TextBox></td>
    </tr>
        
     <tr>
        <td style="text-align:right;"><asp:Label ID="lbMail" runat="server" Text="E-Mail"></asp:Label></td>
        <td><asp:TextBox ID="tbMail" runat="server" ontextchanged="tbMail_TextChanged"></asp:TextBox></td>
        <td></td>
    </tr>
   
    <tr>
    <td><asp:Label ID="lbphoto" runat="server" Text="Photo"></asp:Label></td>
    <td><asp:FileUpload ID="uploadphoto" runat="server" /> </td>
   
    </tr>
    <tr>
        <td style="text-align:right;"><asp:Label ID="lbPosteAdherent" runat="server" Text="Fonction"></asp:Label></td>
        <td>
            <asp:DropDownList ID="dpPosteAdherent" runat="server" 
                OnChange="display_add_field(this.id)">
            <asp:ListItem></asp:ListItem>
            <asp:ListItem Value="joueur">Joueur</asp:ListItem>
            <asp:ListItem Value="dirigeant">Dirigeant</asp:ListItem>
        </asp:DropDownList>
     
        </td>
    </tr>
    
    </table>
    
    <table class="form" cellpadding="5" cellspacing="0" style="width:450px; display:none; border-top:0;" id="d_info">
    
     <tr>
        <td style="width:150px; text-align:right;"><asp:Label ID="Label4" runat="server" Text="Metier"></asp:Label></td>
        <td>
        <asp:DropDownList ID="dpMetier" runat="server"  DataTextField="nomFonction" DataValueField="idFonction">
        </asp:DropDownList>
        </td>
    </tr>
    
    
    <tr>    
        <td>&nbsp;</td>
        <td><asp:Button ID="btAjoutDirigeant" OnClick="btAjoutDirigeant_Click" runat="server" Text="Ajouter un dirigeant" /></td>
    </tr>
    
    </table>
    
    <table class="form" cellpadding="5" cellspacing="0" style="width:450px; display:none; border-top:0;" id="j_info">
    
     <tr>
        <td style="width:150px; text-align:right;"><asp:Label ID="Label1" runat="server" Text="Poste"></asp:Label></td>
        <td><asp:TextBox ID="tbPoste" runat="server"></asp:TextBox></td>
    </tr>
     <tr>
        <td style="text-align:right;"><asp:Label ID="Label2" runat="server" Text="Pied"></asp:Label></td>
        <td><asp:TextBox ID="tbPied" runat="server"></asp:TextBox></td>
    </tr>
    
    <tr>
        <td style="width:150px; text-align:right;"><asp:Label ID="lbTailleAdherent" runat="server" Text="Taille"></asp:Label></td>
        <td><asp:TextBox ID="tbTailleAdherent" runat="server"></asp:TextBox></td>
    </tr>
    
    <tr>
        <td style="text-align:right;"><asp:Label ID="lbPoidsAdherent" runat="server" Text="Poids"></asp:Label></td>
        <td><asp:TextBox ID="tbPoidsAdherent" runat="server"></asp:TextBox></td>
    </tr>
    

    
    <tr>
        <td style="text-align:right;"><asp:Label ID="lbClubAdherent" runat="server" Text="Ancien club"></asp:Label></td>
        <td><asp:TextBox ID="tbClubAdherent" runat="server"></asp:TextBox></td>
    </tr>
    <tr>    
        <td>&nbsp;</td>
        <td>
            <asp:Button ID="btAjoutJoueur"  onclick="btAjoutJoueur_Click" runat="server" Text="Ajouter un joueur" /></td>
    </tr>
    
    
    
    </table>
    
</div>

</asp:Content>

